package com.intelligent.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.intelligent.pojo.CustomerReconciliation;

import java.util.Date;


public interface CustomerReconciliationService extends IService<CustomerReconciliation> {


     // 创建对账单（包含业务逻辑）

    CustomerReconciliation createReconciliation(CustomerReconciliation reconciliation);


     // 分页查询对账单（包含搜索逻辑）

    Page<CustomerReconciliation> pageReconciliation(Page<CustomerReconciliation> page, String recoCode, Long customerId, Integer status, Date createDate);


      //更新对账状态

    boolean updateReconciliationStatus(Long id, Integer status);


     // 计算对账周期内的各项金额
    void amounts(CustomerReconciliation reconciliation);
}
